package com.douban.business.vo;

import java.io.UnsupportedEncodingException;

import com.douban.constants.DoubanConstant;

public class RecordingStatusVO {

	private boolean startListRecording = false;
	private boolean startItemRecording = false;

	// the name of field in ItemVO
	private String fieldName = null;
	
	// the name of last eleName
	private String EleName = null;
	private byte[] fBuffer = null;
	
	private String recordingId = null;
	


	public RecordingStatusVO(){
		
	}

	public String getEleName() {
		return EleName;
	}

	public void setEleName(String eleName) {
		EleName = eleName;
	}
	
	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}
	
	public boolean isStartListRecording() {
		return startListRecording;
	}

	public void setStartListRecording(boolean startListRecording) {
		this.startListRecording = startListRecording;
	}

	public boolean isStartItemRecording() {
		return startItemRecording;
	}

	public void setStartItemRecording(boolean startItemRecording) {
		this.startItemRecording = startItemRecording;
	}

	public void clearFieldName() {
		this.fieldName = null;
		
	}

	public void appendStringBuffer(char[] ch, int offset, int length) {
		if(fBuffer==null){
			fBuffer = new String(ch,offset, length).getBytes(); 
		}
	}
	
	public byte[] getStringBuffer(){
		return fBuffer;
	}

	public void cleanStringBuffer(){
		fBuffer=null;
	}

	public void clearEleName() {
		this.EleName = null;
		
	}

	public void setRecordingId(String recordingId) {
		this.recordingId = recordingId;
	}

	public String getRecordingId() {
		return recordingId;
	}

	public void clearRecordingId() {
		this.recordingId=null;
		
	}
	
}
